<div class="edit_tab tab">
<div class="bg1">
<div class="bg2">
      <span rel="info" class="span_now">查看报修信息</span>
</div>
</div>
</div>
<div >
</div>
<div class="post_form" id="info_form">
	<table width="100%" cellpadding="0" cellspacing="0" border="0" class="info_table">
    	<tr>
			<td class="td1">审批状态：</td>
			<td><span><?=$this->state?></span></td>
		</tr>
        <tr>
			<td class="td1">客户：</td>
			<td><span><?=$this->baoxiu['customer_name']?></span></td>
		</tr>
		<tr>
			<td class="td1">标题：</td>
			<td><span><?=$this->baoxiu['title']?></span></td>
		</tr>
		<tr>
			<td class="td1">内容：</td>
			<td>
            	<?=$this->baoxiu['content']?>
            </td>
		</tr>
        <tr>
			<td class="td1">信息反馈：</td>
			<td>
           	<?=$this->baoxiu['mark']?>
            </td>
		</tr>
     </table>
</div>
<?php if($this->baoxiu['audit_state']==$this->step): ?>
<form id="xxx">
    <div class="t_2">
         <div class="fl">操作</div>
         <div class="fr add_form"><a href="javascript:;" id="add_table"></a></div>
    </div>
	<div class="order_show" id="info_form">
     <table width="100%" cellpadding="0" cellspacing="0" border="0" class="info_table">
		<tr>
			<td class="td1">操作：</td>
			<td><input type="submit" id="audit" value="审核通过"/>
            <input type="hidden" id="bid" name="bid" value="<?php echo $this->baoxiu['bid']; ?>"/>
            </td>
		</tr>
        <tr>
			<td class="td1">信息反馈：</td>
			<td>
            <textarea id="mark" name="mark"></textarea>
            </td>
		</tr>
     </table>
	</div>
</form>
<?php endif; ?>
<script>
$(function(){
	$('#xxx').submit(function(){
		$.post(location.href,$(this).serialize(),function(data){
			alert(data.message);
			if (data.state > 0)
			{
				window.location.reload();
			}
		},'json');
		return false;
	});
});
</script>
